import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { LoginComponent } from '../../login/component/login/login.component';

const appRoutes: Routes = [
    // 默认登录页面
    { path: '', component: LoginComponent },
    // 重定向到登录页面
    { path: '**', component: LoginComponent}
];

@NgModule({
    imports: [
        RouterModule.forRoot(appRoutes),
    ],
    exports: [
        RouterModule
    ],
    providers: []
})
export class RootRouter { }

